const jwt  = require('jsonwebtoken')
var data={
  uname:"zhangsan",
  uage:18,
  tidian:"xiu"
}
var mi='ffaq';
var token=jwt.sign(data,mi);

//校验
//jwt.verify(要校验的token,秘钥,回调)
jwt.verify(token,mi,function(err,data){
  console.log('这是err',err);				//正确就是null
  console.log('这是data',data)
})


console.log('这是token',token)
